package com.yupi.yuojcodesandbox;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@Slf4j
public class YuojCodeSandboxApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(YuojCodeSandboxApplication.class, args);
        String type = applicationContext.getEnvironment().getProperty("codesandbox.type");
        log.info("{}代码沙箱启动成功!",type);
    }

}
